// 菜单被选中添加active
var ture_path = location.pathname;   // 系统真实访问路径
var path = '';
var a = $('ul').children('li').children('a');
$.each(a, function (index) {
    try {
        path = /http:\/\/\d+.\d+.\d+.\d+:\d+(.*)/.exec(this.href)[1];  // 获取页面路径
    } catch (e) {
        path = '';
    }
    if (path == ture_path) {
        $('ul').children().eq(index).addClass('active').siblings().removeClass('active')
    }
});


